<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: eosiosystem Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">eosiosystem Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosiosystem_1_1account.html">account</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosiosystem_1_1producer.html">producer</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosiosystem_1_1producer__vote.html">producer_vote</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosiosystem_1_1stakevote.html">stakevote</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosiosystem_1_1transfer.html">transfer</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosiosystem_1_1transfer__memo.html">transfer_memo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:aa8ead053859f11e1a7b94a662b8cef91"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classeosio_1_1singleton.html">eosio::singleton</a>&lt; <a class="el" href="structeosiosystem_1_1account.html">eosiosystem::account</a>, <a class="el" href="namespaceeosiosystem.html#a26fc8e7b7744762a42ac2fc4cdd3fafd">system_code</a>, <a class="el" href="namespaceeosiosystem.html#a810450491078cf8179898579ccf9e81e">account_table</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#aa8ead053859f11e1a7b94a662b8cef91">account_single</a></td></tr>
<tr class="separator:aa8ead053859f11e1a7b94a662b8cef91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fcdd76a36dbf12231c8435676e52e19"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structeosio_1_1token.html">eosio::token</a>&lt; <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>, <a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(eosio)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#a9fcdd76a36dbf12231c8435676e52e19">native_tokens</a></td></tr>
<tr class="separator:a9fcdd76a36dbf12231c8435676e52e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2685c07350e6605e64bea14d9b7b372"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#ad2685c07350e6605e64bea14d9b7b372">accounts</a> = <a class="el" href="structeosio_1_1table.html">eosio::table</a>&lt; <a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(unused), <a class="el" href="namespaceeosiosystem.html#a26fc8e7b7744762a42ac2fc4cdd3fafd">system_code</a>, <a class="el" href="namespaceeosiosystem.html#a810450491078cf8179898579ccf9e81e">account_table</a>, <a class="el" href="structeosiosystem_1_1account.html">account</a>, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> &gt;</td></tr>
<tr class="separator:ad2685c07350e6605e64bea14d9b7b372"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8a502c589b78b453338d6b2c5b4f405d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#a8a502c589b78b453338d6b2c5b4f405d">on</a> (const <a class="el" href="structeosiosystem_1_1transfer.html">eosiosystem::transfer</a> &amp;act)</td></tr>
<tr class="separator:a8a502c589b78b453338d6b2c5b4f405d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa212f913d019104df46d66e024f6a449"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#aa212f913d019104df46d66e024f6a449">on</a> (const <a class="el" href="structeosiosystem_1_1stakevote.html">eosiosystem::stakevote</a> &amp;act)</td></tr>
<tr class="separator:aa212f913d019104df46d66e024f6a449"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ea5c4b8e36e422e6dd7f2e60ffd6fd4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#a3ea5c4b8e36e422e6dd7f2e60ffd6fd4">init</a> ()</td></tr>
<tr class="separator:a3ea5c4b8e36e422e6dd7f2e60ffd6fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab16b66530a9d35cbe8c08c2b4f5518af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structeosiosystem_1_1account.html">account</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#ab16b66530a9d35cbe8c08c2b4f5518af">get_account</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> owner)</td></tr>
<tr class="separator:ab16b66530a9d35cbe8c08c2b4f5518af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a26fc8e7b7744762a42ac2fc4cdd3fafd"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#a26fc8e7b7744762a42ac2fc4cdd3fafd">system_code</a> = <a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(eosio.system)</td></tr>
<tr class="separator:a26fc8e7b7744762a42ac2fc4cdd3fafd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a810450491078cf8179898579ccf9e81e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceeosiosystem.html#a810450491078cf8179898579ccf9e81e">account_table</a> = <a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="el" href="structeosiosystem_1_1account.html">account</a>)</td></tr>
<tr class="separator:a810450491078cf8179898579ccf9e81e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="aa8ead053859f11e1a7b94a662b8cef91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8ead053859f11e1a7b94a662b8cef91">&#9670;&nbsp;</a></span>account_single</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classeosio_1_1singleton.html">eosio::singleton</a>&lt;<a class="el" href="structeosiosystem_1_1account.html">eosiosystem::account</a>, <a class="el" href="namespaceeosiosystem.html#a26fc8e7b7744762a42ac2fc4cdd3fafd">system_code</a>, <a class="el" href="namespaceeosiosystem.html#a810450491078cf8179898579ccf9e81e">account_table</a>&gt; <a class="el" href="namespaceeosiosystem.html#aa8ead053859f11e1a7b94a662b8cef91">eosiosystem::account_single</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad2685c07350e6605e64bea14d9b7b372"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2685c07350e6605e64bea14d9b7b372">&#9670;&nbsp;</a></span>accounts</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceeosiosystem.html#ad2685c07350e6605e64bea14d9b7b372">eosiosystem::accounts</a> = typedef <a class="el" href="structeosio_1_1table.html">eosio::table</a>&lt;<a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(unused),<a class="el" href="namespaceeosiosystem.html#a26fc8e7b7744762a42ac2fc4cdd3fafd">system_code</a>,<a class="el" href="namespaceeosiosystem.html#a810450491078cf8179898579ccf9e81e">account_table</a>,<a class="el" href="structeosiosystem_1_1account.html">account</a>,<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Defines the database table for account information </p>

</div>
</div>
<a id="a9fcdd76a36dbf12231c8435676e52e19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fcdd76a36dbf12231c8435676e52e19">&#9670;&nbsp;</a></span>native_tokens</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structeosio_1_1token.html">eosio::token</a>&lt;<a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>,<a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(eosio)&gt; <a class="el" href="namespaceeosiosystem.html#a9fcdd76a36dbf12231c8435676e52e19">eosiosystem::native_tokens</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>We create the native EOSIO token type </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ab16b66530a9d35cbe8c08c2b4f5518af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab16b66530a9d35cbe8c08c2b4f5518af">&#9670;&nbsp;</a></span>get_account()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosiosystem_1_1account.html">account</a> eosiosystem::get_account </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>owner</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>accounts information for owner is stored:</p>
<p>owner/TOKEN_NAME/account/account -&gt; account</p>
<p>This API is made available for 3rd parties wanting read access to the users balance. If the account doesn't exist a default constructed account will be returned. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">owner</td><td>The account owner </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>account instance </dd></dl>
<p>scope, record </p>

</div>
</div>
<a id="a3ea5c4b8e36e422e6dd7f2e60ffd6fd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ea5c4b8e36e422e6dd7f2e60ffd6fd4">&#9670;&nbsp;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void eosiosystem::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8a502c589b78b453338d6b2c5b4f405d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a502c589b78b453338d6b2c5b4f405d">&#9670;&nbsp;</a></span>on() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void eosiosystem::on </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosiosystem_1_1transfer.html">eosiosystem::transfer</a> &amp;&#160;</td>
          <td class="paramname"><em>act</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>token subtraction has underflow assertion</p>
<p>token addition has overflow assertion </p>

</div>
</div>
<a id="aa212f913d019104df46d66e024f6a449"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa212f913d019104df46d66e024f6a449">&#9670;&nbsp;</a></span>on() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void eosiosystem::on </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosiosystem_1_1stakevote.html">eosiosystem::stakevote</a> &amp;&#160;</td>
          <td class="paramname"><em>act</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>token subtraction has underflow assertion</p>
<p>token addition has overflow assertion</p>
<p>TODO: iterate over all producer votes on act.to </p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a810450491078cf8179898579ccf9e81e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a810450491078cf8179898579ccf9e81e">&#9670;&nbsp;</a></span>account_table</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> eosiosystem::account_table = <a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="el" href="structeosiosystem_1_1account.html">account</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a26fc8e7b7744762a42ac2fc4cdd3fafd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26fc8e7b7744762a42ac2fc4cdd3fafd">&#9670;&nbsp;</a></span>system_code</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> eosiosystem::system_code = <a class="el" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(eosio.system)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
